package user

import (
	"gitcode.com/G-YT/iHealth25/server/api/v1"
	"gitcode.com/G-YT/iHealth25/server/middleware"
	"github.com/gin-gonic/gin"
)

type UserBindManageRouter struct {
}

// InitUserBindManageRouter 初始化 用户绑定健管师 路由信息
func (s *UserBindManageRouter) InitUserBindManageRouter(Router *gin.RouterGroup) {
	BindRouter := Router.Group("Bind").Use(middleware.OperationRecord())
	BindRouterWithoutRecord := Router.Group("Bind")
	var BindApi = v1.ApiGroupApp.UserApiGroup.UserBindManageApi
	{
		BindRouter.DELETE("deleteUserBindManage", BindApi.DeleteUserBindManage)           // 删除用户绑定健管师
		BindRouter.DELETE("deleteUserBindManageByIds", BindApi.DeleteUserBindManageByIds) // 批量删除用户绑定健管师
		BindRouter.PUT("updateUserBindManage", BindApi.UpdateUserBindManage)              // 更新用户绑定健管师
	}
	{
		BindRouterWithoutRecord.POST("createUserBindManage", BindApi.CreateUserBindManage)  // 新建用户绑定健管师
		BindRouterWithoutRecord.PUT("updateBindStatus", BindApi.UpdateBindStatus)           // 修改绑定状态
		BindRouterWithoutRecord.GET("getBindUserList", BindApi.GetBindUserList)             // 获取绑定用户列表
		BindRouterWithoutRecord.GET("findUserBindManage", BindApi.FindUserBindManage)       // 根据ID获取用户绑定健管师
		BindRouterWithoutRecord.GET("getUserBindManageList", BindApi.GetUserBindManageList) // 获取用户绑定健管师列表
	}
}
